<?php

	
       if(isset($features["mod_wid_tow_assignedvehicles"])) 
       if(in_array("all",$features["mod_wid_tow_assignedvehicles"]))
       {
           $allvehicle=new VehicleRequestVO();
  
           
			$allvehicle->status=1;
                        $allvehicle->type="tower";
                        $allvehicle->tower_company = $user->company_id;
                     
                        
				 $allvehicle->num_record= 5;
				 $allvehicle->index= 0;
				   $allvehicle->sort_string= "";
				   $allvehicle->sort_type="";
                                   
                          $result_AssignedVehicles = VehicleDAOImpl::getInstance()->getVehicleByPageIndex($allvehicle);
                     $result_Counts = VehicleDAOImpl::getInstance()->getTowVehicleCounts($user->company_id);
                // $allvehicle->type="tower";
                 //$allvehicle->tower_company = $user->company;    
                 
             $result_Todaysdelivering = VehicleDAOImpl::getInstance()->getTodaysdelivering($user->company_id);          
             $resultLastOpened = VehicleDAOImpl::getInstance()->getLastOpened($user->company_id);
                      
    //   $result_allvehicle = VehicleDAOImpl::getInstance()->;

       }
      
       if($user->role_id!=8)
       {
            $vehicle_counts = DashboardDAOImpl::getInstance()->getVehicleCount();
            $reminder_list = DashboardDAOImpl::getInstance()->getReminders();
            $vehcile_list = DashboardDAOImpl::getInstance()->getRecentVehicles();
            $submission_chart = DashboardDAOImpl::getInstance()->getSubmissionChart();
            $revenue_chart = DashboardDAOImpl::getInstance()->getRevenueChart();
            $quarter_chart = DashboardDAOImpl::getInstance()->getQuarterChart();
            $status_chart = DashboardDAOImpl::getInstance()->getStatusChart();
            
            
       }
       
               
        

?>